package JavaCodePublicClass.龟兔赛跑;

public class LetOneStop implements Animal.Calltoback {
    //动物对象
    Animal an;

    public LetOneStop(Animal an) {
        this.an = an;
    }

    public void win() {
        an.stop();//停止
    }
}
